﻿namespace Forethought.Core.Behaviors 
// <- cannot use module here 

open System
open ParsingServices
open Execution

type public BehaviorService() =
   inherit ParsingService() 
   
   override this.Initialize() = 
      this.OnFeatureStarted.Add(fun a -> a.Succeded <- true; Console.Beep())
      this.OnScenarioStarted.Add(fun a -> a.Succeded <- true; Console.Beep())
      this.OnStepStarted.Add(fun a -> a.Succeded <- true; Console.Beep())
      this.OnFeatureEnded.Add(fun a -> a.Succeded <- true; Console.Beep())
      this.OnScenarioEnded.Add(fun a -> a.Succeded <- true; Console.Beep())
      this.OnStepEnded.Add(fun a -> a.Succeded <- true; Console.Beep())
